<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./TemplatePrincipal.xhtml">

            <ui:define name="top">
                top
            </ui:define>

            <ui:define name="content">
               
                <f:view>
                    <h:form>
                        <h1><h:outputText value="List"/></h1>
                        <h:dataTable value="#{salonBean.lista}" var="item">
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="IdSalon"/>
                                </f:facet>
                                <h:outputText value="#{item.idSalon}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="HoraDisponible"/>
                                </f:facet>
                                <h:outputText value="#{item.horaDisponible}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Tipo"/>
                                </f:facet>
                                <h:outputText value="#{item.tipo}"/>
                            </h:column>
                        </h:dataTable>
                    </h:form>
                </f:view>

                
                <h:form>
                    
                    <h:commandButton action="menunPrincipal" value="regresar"/>
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
